import { postRequest, getRequest, windowOpen } from "../http.js";
// 房间服务状态信息查询
let getList = (data) => {
    return new Promise((reslove, reject) => {
        getRequest("/api/zhitai/wulian/room/list/v1", data).then((res) => {
            reslove(res);
        });
    });
};
// 服务命令列表
let getCmdList = (data) => {
    return new Promise((reslove, reject) => {
        postRequest("/api/zhitai/wulian/cmd", data).then((res) => {
            reslove(res);
        });
    });
};
// 下发指令
let getCeviceControl = (data) => {
    return new Promise((reslove, reject) => {
        postRequest("/api/zhitai/wulian/deviceControl", data).then((res) => {
            reslove(res);
        });
    });
};
// 厕所数据
let getRestroomList = (data) => {
    return new Promise((reslove, reject) => {
        getRequest("/api/zhitai/wulian/restroom/list", data).then((res) => {
            reslove(res);
        });
    });
};
export { getList, getRestroomList, getCmdList, getCeviceControl };
